package com.crm.model.entity.courseregist;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CourseConsumeRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CourseConsumeRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConsumeRecordIdIsNull() {
            addCriterion("consume_record_id is null");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdIsNotNull() {
            addCriterion("consume_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdEqualTo(String value) {
            addCriterion("consume_record_id =", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdNotEqualTo(String value) {
            addCriterion("consume_record_id <>", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdGreaterThan(String value) {
            addCriterion("consume_record_id >", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdGreaterThanOrEqualTo(String value) {
            addCriterion("consume_record_id >=", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdLessThan(String value) {
            addCriterion("consume_record_id <", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdLessThanOrEqualTo(String value) {
            addCriterion("consume_record_id <=", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdLike(String value) {
            addCriterion("consume_record_id like", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdNotLike(String value) {
            addCriterion("consume_record_id not like", value, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdIn(List<String> values) {
            addCriterion("consume_record_id in", values, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdNotIn(List<String> values) {
            addCriterion("consume_record_id not in", values, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdBetween(String value1, String value2) {
            addCriterion("consume_record_id between", value1, value2, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andConsumeRecordIdNotBetween(String value1, String value2) {
            addCriterion("consume_record_id not between", value1, value2, "consumeRecordId");
            return (Criteria) this;
        }

        public Criteria andProductNumIsNull() {
            addCriterion("product_num is null");
            return (Criteria) this;
        }

        public Criteria andProductNumIsNotNull() {
            addCriterion("product_num is not null");
            return (Criteria) this;
        }

        public Criteria andProductNumEqualTo(String value) {
            addCriterion("product_num =", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotEqualTo(String value) {
            addCriterion("product_num <>", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumGreaterThan(String value) {
            addCriterion("product_num >", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumGreaterThanOrEqualTo(String value) {
            addCriterion("product_num >=", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumLessThan(String value) {
            addCriterion("product_num <", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumLessThanOrEqualTo(String value) {
            addCriterion("product_num <=", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumLike(String value) {
            addCriterion("product_num like", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotLike(String value) {
            addCriterion("product_num not like", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumIn(List<String> values) {
            addCriterion("product_num in", values, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotIn(List<String> values) {
            addCriterion("product_num not in", values, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumBetween(String value1, String value2) {
            addCriterion("product_num between", value1, value2, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotBetween(String value1, String value2) {
            addCriterion("product_num not between", value1, value2, "productNum");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesIsNull() {
            addCriterion("consume_service_times is null");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesIsNotNull() {
            addCriterion("consume_service_times is not null");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesEqualTo(Integer value) {
            addCriterion("consume_service_times =", value, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesNotEqualTo(Integer value) {
            addCriterion("consume_service_times <>", value, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesGreaterThan(Integer value) {
            addCriterion("consume_service_times >", value, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("consume_service_times >=", value, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesLessThan(Integer value) {
            addCriterion("consume_service_times <", value, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesLessThanOrEqualTo(Integer value) {
            addCriterion("consume_service_times <=", value, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesIn(List<Integer> values) {
            addCriterion("consume_service_times in", values, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesNotIn(List<Integer> values) {
            addCriterion("consume_service_times not in", values, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesBetween(Integer value1, Integer value2) {
            addCriterion("consume_service_times between", value1, value2, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andConsumeServiceTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("consume_service_times not between", value1, value2, "consumeServiceTimes");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesIsNull() {
            addCriterion("product_categories is null");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesIsNotNull() {
            addCriterion("product_categories is not null");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesEqualTo(Integer value) {
            addCriterion("product_categories =", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotEqualTo(Integer value) {
            addCriterion("product_categories <>", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesGreaterThan(Integer value) {
            addCriterion("product_categories >", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_categories >=", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesLessThan(Integer value) {
            addCriterion("product_categories <", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesLessThanOrEqualTo(Integer value) {
            addCriterion("product_categories <=", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesIn(List<Integer> values) {
            addCriterion("product_categories in", values, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotIn(List<Integer> values) {
            addCriterion("product_categories not in", values, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesBetween(Integer value1, Integer value2) {
            addCriterion("product_categories between", value1, value2, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotBetween(Integer value1, Integer value2) {
            addCriterion("product_categories not between", value1, value2, "productCategories");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdIsNull() {
            addCriterion("course_arrange_id is null");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdIsNotNull() {
            addCriterion("course_arrange_id is not null");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdEqualTo(String value) {
            addCriterion("course_arrange_id =", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdNotEqualTo(String value) {
            addCriterion("course_arrange_id <>", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdGreaterThan(String value) {
            addCriterion("course_arrange_id >", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdGreaterThanOrEqualTo(String value) {
            addCriterion("course_arrange_id >=", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdLessThan(String value) {
            addCriterion("course_arrange_id <", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdLessThanOrEqualTo(String value) {
            addCriterion("course_arrange_id <=", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdLike(String value) {
            addCriterion("course_arrange_id like", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdNotLike(String value) {
            addCriterion("course_arrange_id not like", value, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdIn(List<String> values) {
            addCriterion("course_arrange_id in", values, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdNotIn(List<String> values) {
            addCriterion("course_arrange_id not in", values, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdBetween(String value1, String value2) {
            addCriterion("course_arrange_id between", value1, value2, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andCourseArrangeIdNotBetween(String value1, String value2) {
            addCriterion("course_arrange_id not between", value1, value2, "courseArrangeId");
            return (Criteria) this;
        }

        public Criteria andAccountIdIsNull() {
            addCriterion("account_id is null");
            return (Criteria) this;
        }

        public Criteria andAccountIdIsNotNull() {
            addCriterion("account_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccountIdEqualTo(String value) {
            addCriterion("account_id =", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotEqualTo(String value) {
            addCriterion("account_id <>", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdGreaterThan(String value) {
            addCriterion("account_id >", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdGreaterThanOrEqualTo(String value) {
            addCriterion("account_id >=", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLessThan(String value) {
            addCriterion("account_id <", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLessThanOrEqualTo(String value) {
            addCriterion("account_id <=", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLike(String value) {
            addCriterion("account_id like", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotLike(String value) {
            addCriterion("account_id not like", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdIn(List<String> values) {
            addCriterion("account_id in", values, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotIn(List<String> values) {
            addCriterion("account_id not in", values, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdBetween(String value1, String value2) {
            addCriterion("account_id between", value1, value2, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotBetween(String value1, String value2) {
            addCriterion("account_id not between", value1, value2, "accountId");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdIsNull() {
            addCriterion("course_registration_id is null");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdIsNotNull() {
            addCriterion("course_registration_id is not null");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdEqualTo(String value) {
            addCriterion("course_registration_id =", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdNotEqualTo(String value) {
            addCriterion("course_registration_id <>", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdGreaterThan(String value) {
            addCriterion("course_registration_id >", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdGreaterThanOrEqualTo(String value) {
            addCriterion("course_registration_id >=", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdLessThan(String value) {
            addCriterion("course_registration_id <", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdLessThanOrEqualTo(String value) {
            addCriterion("course_registration_id <=", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdLike(String value) {
            addCriterion("course_registration_id like", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdNotLike(String value) {
            addCriterion("course_registration_id not like", value, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdIn(List<String> values) {
            addCriterion("course_registration_id in", values, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdNotIn(List<String> values) {
            addCriterion("course_registration_id not in", values, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdBetween(String value1, String value2) {
            addCriterion("course_registration_id between", value1, value2, "courseRegistrationId");
            return (Criteria) this;
        }

        public Criteria andCourseRegistrationIdNotBetween(String value1, String value2) {
            addCriterion("course_registration_id not between", value1, value2, "courseRegistrationId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}